﻿import com.gamemeal.physics.IForce;
import com.gamemeal.physics.Particle;

/**
 * @author Colin Leung
 */
class com.gamemeal.physics.GravityForce implements IForce {
	private var g:Number;
	public function GravityForce(arg:Number){
		g = (arg==undefined)?10:arg;
	}

	public function apply(p : Particle, dt : Number) {
		p.f.y += g*p.m;
	}
}